#include "WorldStdafx.h"
#include "Common.h"
#include "Root.h"
#include "AvatarManager.h"
#include "ServerSocket.h"
#include "ClientServer/RegisterFunc.h"
#include "SceneTo2D.h"

Root gRoot;
Root::Root(void)
:m_IScene(NULL)
{
}

Root::~Root(void)
{
}


void Root::init()
{
	//SystemConfig::getInstance()->init();
	m_XmlDataServer.Init();
	m_serverInterface.initServer();
	gAvatarManager.init();
	ServerSocket::init();
	CmdSocket::init();

	m_IScene = new SceneTo2D();
}

void Root::release()
{
	m_XmlDataServer.Release();
    delete m_IScene;
}
